package com.dhkj.web.idf.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

public class Product   implements Parcelable {

    private String bindMenuPK;
    private float calorie;
    private float carbohydrate;
    private String comment;
    private float fat;
    private float fibre;
    private int menuCost;
    private String menuId;
    private String menuName;
     private int menuPK;
    private int menuPictureType;
     private String menuSpell;
    private String menuTypeId;
    private String menuTypeName;
    private int menuTypePK;
    private String merchantName;
    private int merchantPK;
    private int nutritionMode = 1;
    private float protein;
    private float sodium;
    private int state;
    private String stateValue;
     private List<String> menuPicture;

    //request参数
     private List<Integer> consumptionTypePKList;

     private List<Integer> menuCirculationList;



    public Product() {
    }

    public Product(Product product) {
        this.bindMenuPK = product.bindMenuPK;
        this.calorie = product.calorie;
        this.carbohydrate = product.carbohydrate;
        this.comment = product.comment;
        this.fat = product.fat;
        this.fibre = product.fibre;
        this.menuCost = product.menuCost;
        this.menuId = product.menuId;
        this.menuName = product.menuName;
        this.menuPK = product.menuPK;
        this.menuPictureType = product.menuPictureType;
         this.menuSpell = product.menuSpell;
        this.menuTypeId = product.menuTypeId;
        this.menuTypeName = product.menuTypeName;
        this.menuTypePK = product.menuTypePK;
        this.merchantName = product.merchantName;
        this.merchantPK = product.merchantPK;
        this.nutritionMode = product.nutritionMode;
        this.protein = product.protein;
        this.sodium = product.sodium;
        this.state = product.state;
        this.stateValue = product.stateValue;

    }

    protected Product(Parcel in) {
        bindMenuPK = in.readString();
        calorie = in.readFloat();
        carbohydrate = in.readFloat();
        comment = in.readString();
        fat = in.readFloat();
        fibre = in.readFloat();
        menuCost = in.readInt();
        menuId = in.readString();
        menuName = in.readString();
        menuPK = in.readInt();
        menuPictureType = in.readInt();
        menuSpell = in.readString();
        menuTypeId = in.readString();
        menuTypeName = in.readString();
        menuTypePK = in.readInt();
        merchantName = in.readString();
        merchantPK = in.readInt();
        nutritionMode = in.readInt();
        protein = in.readFloat();
        sodium = in.readFloat();
        state = in.readInt();
        stateValue = in.readString();
        menuPicture = in.readArrayList(String.class.getClassLoader());
    }

    public static final Creator<Product> CREATOR = new Creator<Product>() {
        @Override
        public Product createFromParcel(Parcel in) {
            return new Product(in);
        }

        @Override
        public Product[] newArray(int size) {
            return new Product[size];
        }
    };

    public String getBindMenuPK() {
        return bindMenuPK;
    }

    public void setBindMenuPK(String bindMenuPK) {
        this.bindMenuPK = bindMenuPK;
    }

    public float getCalorie() {
        return calorie;
    }

    public void setCalorie(float calorie) {
        this.calorie = calorie;
    }

    public float getCarbohydrate() {
        return carbohydrate;
    }

    public void setCarbohydrate(float carbohydrate) {
        this.carbohydrate = carbohydrate;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public float getFat() {
        return fat;
    }

    public void setFat(float fat) {
        this.fat = fat;
    }

    public float getFibre() {
        return fibre;
    }

    public void setFibre(float fibre) {
        this.fibre = fibre;
    }

    public int getMenuCost() {
        return menuCost;
    }

    public void setMenuCost(int menuCost) {
        this.menuCost = menuCost;
    }

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public int getMenuPK() {
        return menuPK;
    }

    public void setMenuPK(int menuPK) {
        this.menuPK = menuPK;
    }

    public int getMenuPictureType() {
        return menuPictureType;
    }

    public void setMenuPictureType(int menuPictureType) {
        this.menuPictureType = menuPictureType;
    }


    public String getMenuSpell() {
        return menuSpell;
    }

    public void setMenuSpell(String menuSpell) {
        this.menuSpell = menuSpell;
    }

    public String getMenuTypeId() {
        return menuTypeId;
    }

    public void setMenuTypeId(String menuTypeId) {
        this.menuTypeId = menuTypeId;
    }

    public String getMenuTypeName() {
        return menuTypeName;
    }

    public void setMenuTypeName(String menuTypeName) {
        this.menuTypeName = menuTypeName;
    }

    public int getMenuTypePK() {
        return menuTypePK;
    }

    public void setMenuTypePK(int menuTypePK) {
        this.menuTypePK = menuTypePK;
    }

    public String getMerchantName() {
        return merchantName;
    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }

    public int getMerchantPK() {
        return merchantPK;
    }

    public void setMerchantPK(int merchantPK) {
        this.merchantPK = merchantPK;
    }

    public int getNutritionMode() {
        return nutritionMode;
    }

    public void setNutritionMode(int nutritionMode) {
        this.nutritionMode = nutritionMode;
    }

    public float getProtein() {
        return protein;
    }

    public void setProtein(float protein) {
        this.protein = protein;
    }

    public float getSodium() {
        return sodium;
    }

    public void setSodium(float sodium) {
        this.sodium = sodium;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getStateValue() {
        return stateValue;
    }

    public void setStateValue(String stateValue) {
        this.stateValue = stateValue;
    }

    public List<String> getMenuPicture() {
        return menuPicture;
    }

    public void setMenuPicture(List<String> menuPicture) {
        this.menuPicture = menuPicture;
    }

    public List<Integer> getConsumptionTypePKList() {
        return consumptionTypePKList;
    }

    public void setConsumptionTypePKList(List<Integer> consumptionTypePKList) {
        this.consumptionTypePKList = consumptionTypePKList;
    }

    public List<Integer> getMenuCirculationList() {
        return menuCirculationList;
    }

    public void setMenuCirculationList(List<Integer> menuCirculationList) {
        this.menuCirculationList = menuCirculationList;
    }




    @Override
    public String toString() {
        return "Product{" +
                "bindMenuPK='" + bindMenuPK + '\'' +
                ", calorie=" + calorie +
                ", carbohydrate=" + carbohydrate +
                ", comment='" + comment + '\'' +
                ", fat=" + fat +
                ", fibre=" + fibre +
                ", menuCost=" + menuCost +
                ", menuId='" + menuId + '\'' +
                ", menuName='" + menuName + '\'' +
                ", menuPK=" + menuPK +
                ", menuPictureType=" + menuPictureType +
                 ", menuSpell='" + menuSpell + '\'' +
                ", menuTypeId='" + menuTypeId + '\'' +
                ", menuTypeName='" + menuTypeName + '\'' +
                ", menuTypePK=" + menuTypePK +
                ", merchantName='" + merchantName + '\'' +
                ", merchantPK=" + merchantPK +
                ", nutritionMode=" + nutritionMode +
                ", protein=" + protein +
                ", sodium=" + sodium +
                ", state=" + state +
                ", stateValue='" + stateValue + '\'' +
                ", menuPicture=" + menuPicture +
                ", consumptionTypePKList=" + consumptionTypePKList +
                ", menuCirculationList=" + menuCirculationList +
                  '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(bindMenuPK);
        dest.writeFloat(calorie);
        dest.writeFloat(carbohydrate);
        dest.writeString(comment);
        dest.writeFloat(fat);
        dest.writeFloat(fibre);
        dest.writeInt(menuCost);
        dest.writeString(menuId);
        dest.writeString(menuName);
        dest.writeInt(menuPK);
        dest.writeInt(menuPictureType);
        dest.writeString(menuSpell);
        dest.writeString(menuTypeId);
        dest.writeString(menuTypeName);
        dest.writeInt(menuTypePK);
        dest.writeString(merchantName);
        dest.writeInt(merchantPK);
        dest.writeInt(nutritionMode);
        dest.writeFloat(protein);
        dest.writeFloat(sodium);
        dest.writeInt(state);
        dest.writeString(stateValue);
        dest.writeList(menuPicture);
    }
}
